import React, { Component } from 'react';
import {AtIcon} from "taro-ui";
import Taro from '@tarojs/taro';
import {Image, View} from '@tarojs/components'
import GzhAuth from "../../../components/gzh-auth/gzh-auth";
import {RESOURCE_URL} from "../../../constants/api";

class Index extends Component {
  getHistoryLength(){
    return window.history.length > 0
  }
  render() {
    return (
      <View style='width: 100%;'>
        {process.env.TARO_ENV ==='h5' && this.getHistoryLength() && <View style='width: 36Px;height: 36Px;border-radius: 50%;background-color: rgba(0,0,0,.3);display: flex;align-items: center;justify-content: center;position: absolute;top: 15px;left: 15px;z-index: 99;' onClick={()=> Taro.navigateBack()}>
          <AtIcon value='icon icon-a-2tubiaozhizuomoban-01-011' color='#fff' customStyle='transform: rotate(90deg);vertical-align: inherit;' size='20px' />
        </View> }
        <GzhAuth />
        <Image src={`${RESOURCE_URL}/resources/weapp/images/202108/xinshourenwu1.png`}  mode='widthFix' style='width: 100%;' />
      </View>
    );
  }
}

export default Index
